export const AssetType = {
    UNKOWN: -1,
    IMAGE : 0,
    TEXT: 1,
    JSON: 2,
}

export class Asset {
    type = AssetType.UNKOWN;
    path = null;
    constructor(path) {
        this.path = path;
    }
}

export class ImageAsset extends Asset {
    type = AssetType.IMAGE;
    image = null;
    constructor(path) {
        super(path);
    }
}

export class TextAsset extends Asset {
    type = AssetType.TEXT;
    text = null;
    constructor(path) {
        super(path);
    }
}

export class JsonAsset extends Asset {
    type = AssetType.JSON;
    json = null;
    constructor(path) {
        super(path);
    }
}